import request from '@/utils/request'

// 查询分页
export function findBrandPageList(obj) {
  return request({
    url: '/product/brand/list',
    method: 'get',
    params: obj
  })
}
//新增
export function addBrandInfo(data) {
  return request({
    url: '/product/brand/add',
    method: 'post',
    data
  })
}
//修改之前的回显
export function findBrandDetailInfoById(id){
  return request({
    url: `/product/brand/detail/${id}`,
    method: 'get'
  })
}
//修改
export function updateBrandInfo(data) {
  return request({
    url: '/product/brand/update',
    method: 'put',
    data
  })
}
//删除
export function deleteBrandById(id) {
  return request({
    url: `/product/brand/delete/${id}`,
    method: 'delete'
  })
}
//获取所有品牌信息
export function getBrandAll() {
  return request({
    url: `/product/brand/getAllBrand`,
    method: 'get'
  })
}